projects
/
gpsbabel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9cdbfc7
)
Make unknown units in parse_speed into warnings and not fatal.
author
Robert Lipe
<robertlipe@gpsbabel.org>
Fri, 30 Dec 2016 05:12:18 +0000
(23:12 -0600)
committer
Robert Lipe
<robertlipe@gpsbabel.org>
Fri, 30 Dec 2016 05:12:18 +0000
(23:12 -0600)
parse.cc
patch
|
blob
|
history
diff --git
a/parse.cc
b/parse.cc
index 6540b94b530b28b98edfbbc9c02d33a4cc18aa16..981e2f1b64abdc31cd7228d2298cec2665328d9d 100644
(file)
--- a/
parse.cc
+++ b/
parse.cc
@@
-137,7
+137,7
@@
parse_speed(const char* str, double* val, const double scale, const char* module
} else if (case_ignore_strcmp(unit, "mih") == 0) {
*val = MPH_TO_MPS(*val);
} else {
-
fatal
("%s: Unsupported speed unit '%s' in item '%s'!\n", module, unit, str);
+
warning
("%s: Unsupported speed unit '%s' in item '%s'!\n", module, unit, str);
}
return 2;